﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace UnityContainerExample
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var first = MyFirstServiceLocator.Current;
            var second = MyFirstServiceLocator.Current;
            var third = MySecondServiceLocator.Current;
            var fourth = MySecondServiceLocator.Current;

            Trace.Write("Unity", first.ConstructorInfo);
            Trace.Write("Unity", second.ConstructorInfo);
            Trace.Write("Unity", third.ConstructorInfo);
            Trace.Write("Unity", fourth.ConstructorInfo);

        }
    }
}